package com.fhz.a2002;

/**
 * 时间:2022/4/19
 *
 * @author msfeng
 * 简述: TODO
 */
public class User {

    private String name;
    private String address;
    private String email;


    private User(){}


    //用来帮助创建user对象
    public static class Builder{
        private String name;
        private String address;
        private String email;

        public User build(){
            User user = new User();

            user.name  =  name;
            user.address = address;

            return user;

        }

        public Builder setName(String name){
            this.name = name;
            return this;
        }

        public Builder setAddress(String address){
            this.address = address;
            return this;
        }


    }



}

